* Makefile.in (install-arch-indep): Avoid readdir race.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2014 17:28:53 +0000 (10:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2014 17:28:53 +0000 (10:28 -0700)
ChangeLog
Makefile.in

index 36f41b816d28afea8d849e8681f56eb15e3a8341..c22621f78527d28ab4d6340a4013b27ef9d135fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.in (install-arch-indep): Avoid readdir race (Bug#17971).
+
 2014-06-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * configure.ac: Warn about --enable-link-time-optimization's issues
index 76a030407b952cd28621f08c70a5c5f14a902805..103b035a3c9d091329eb040841a2dbacdead167c 100644 (file)
@@ -615,8 +615,9 @@ install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
        [ -z "${GZIP_PROG}" ] || { \
          echo "Compressing *.el ..." && \
          cd "$(DESTDIR)${lispdir}" && \
-         find . -name '*.elc' -exec $(SHELL) -c \
-           '${GZIP_PROG} -9n `expr "$$1" : "\\(.*\\)c"`' dummy '{}' ';'; \
+         for f in `find . -name "*.elc" -print | sed 's/.elc$$/.el/'`; do \
+           ${GZIP_PROG} -9n "$$f"; \
+         done; \
        }
        -chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS}